<template>
  <div class="about">
    <h1>This is an about page</h1>

    <button @click="logoutHandler">退出</button>
  </div>
</template>

<script>
export default {
  name: 'About',
  methods: {
    logoutHandler() {
      this.$store.dispatch('userStore/resetToken')

      this.$router.push('/login')
    }
  }
}
</script>